<?php include '../../entries/restful.php';
include_once './common.php';
/**
 *  用户获取指定批次的水费订单或者电费订单
 */
class Surface extends Restful{

    public function action(){
        $fee_type = get('fee_type');
        $user = json_decode($this->session->getItem('user'),true);
        $cmt_id = $user['cmt_id'];
        $batch_id = get('batch_id');
        $obj = Common::assets($cmt_id,$batch_id);
        return Res::ok($obj);
    }
}

new Surface();